package com.loukou.lkt.lkt.service.impl;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.loukou.lkt.lkt.dao.PurchaseReturnOrderNoticeDao;
import com.loukou.lkt.lkt.entity.PurchaseReturnOrderNotice;
import com.loukou.lkt.lkt.resp.RespDto;
import com.loukou.lkt.lkt.service.PurchaseReturnOrderService;

@Service
public class PurchaseReturnOrderNoticeServiceImpl implements PurchaseReturnOrderService{
	
	@Autowired
	private PurchaseReturnOrderNoticeDao returnOrderNoticeDao;

	@Override
	public RespDto<String> noticeWMS(int returnOrderId) {
		RespDto<String> resp=new RespDto<String>();
		resp.setCode(200);
		resp.setMsg("");
		
		PurchaseReturnOrderNotice orderNotice=new PurchaseReturnOrderNotice();
		orderNotice.setReturnOrderId(returnOrderId);
		orderNotice.setNoticed(0);
		orderNotice.setCreateTime(new Date());
		
		returnOrderNoticeDao.save(orderNotice);
		
		
		return resp;
	}

}
